import 'package:json_annotation/json_annotation.dart'; 
  
part 'love_gallery_model.g.dart';


@JsonSerializable()
  class LoveGalleryModel extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'message')
  String message;

  @JsonKey(name: 'data')
  List<Data> data;

  LoveGalleryModel(this.code,this.message,this.data,);

  factory LoveGalleryModel.fromJson(Map<String, dynamic> srcJson) => _$LoveGalleryModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$LoveGalleryModelToJson(this);

}

  
@JsonSerializable()
  class Data extends Object {

  @JsonKey(name: 'time_key')
  String timeKey;

  @JsonKey(name: 'picture_data')
  List<Picture_data> pictureData;

  Data(this.timeKey,this.pictureData,);

  factory Data.fromJson(Map<String, dynamic> srcJson) => _$DataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$DataToJson(this);

}

  
@JsonSerializable()
  class Picture_data extends Object {

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'origin')
  String origin;

  @JsonKey(name: 'thumbnail')
  String thumbnail;

  Picture_data(this.name,this.origin,this.thumbnail,);

  factory Picture_data.fromJson(Map<String, dynamic> srcJson) => _$Picture_dataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$Picture_dataToJson(this);

}

  
